package com.wsoft.hr.pm.service;

import com.github.pagehelper.PageInfo;
import com.wsoft.hr.pm.entity.HrPmWarningEntity;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wsoft.hr.pm.query.warning.WarningListQuery;

/**
 * <p>
 * 预警表 服务类
 * </p>
 *
 * @author Z001
 * @since 2025年03月07日 09:44:46
 */
public interface IHrPmWarningService extends IService<HrPmWarningEntity> {

    /**
     * 预警分页查询
     * @param query
     * @return
     */
    PageInfo<HrPmWarningEntity> listWarning(WarningListQuery query);

    /**
     * 获取预警详情
     * @param id
     * @return
     */
    HrPmWarningEntity getWarningInfo(Long id);

    /**
     * 删除预警
     * @param id
     * @return
     */
    boolean delete(Long id);
}
